package com.tongtailian.www.stir.bean;

import com.tongtailian.www.stir.utils.LogUtil;


public class DeviceModleFram extends BaseDataFram {

    /**
     * 当前模式
     * 1 单路
     * 2 双路
     */
    private int modle;


    public DeviceModleFram(String param, String data) {
        this.type = BaseDataFramType.devicesModle;
        this.param = param;
        this.data = data;
    }


    @Override
    public void parseFrame(String frame) {
        super.parseFrame(frame);
        int position = 0;
        //具体解析
        LogUtil.d("解析数据:" + data);
        modle = parseIntResult(position, data2);

    }

    public int getModle() {
        return modle;
    }

    public void setModle(int modle) {
        this.modle = modle;
    }

    @Override
    public String toString() {
        return "DeviceModleFram{" +
                "modle=" + modle +
                '}';
    }
}
